using Godot;
using Godot.Collections;
using System;

public partial class SceneControl : Node
{
	public Dictionary<string,Variant> get_scenes()
	{
		//获取子节点（角色NPC）的存档数据的数组

		var scenes = new Array<Dictionary<string, Variant>>();
		for (int i = 0;i <this.GetChildCount();i++)
		{
			scenes.Add(this.GetChild<Map>(i).GetDataForSave());
		}
		var mapDataForSave = new Dictionary<string,Variant>
		{
			{"scenes",scenes}
		};
		return mapDataForSave;
	}
}
